//
//  MineOrderSecondTableViewCell.m
//  shopping
//
//  Created by 马田成 on 2017/8/31.
//  Copyright © 2017年 qianyi. All rights reserved.
//

#import "MineOrderSecondTableViewCell.h"
#import "ForThePaymentViewController.h"
#import "ToSendTheGoodsViewController.h"
#import "ForTheGoodsViewController.h"
#import "SuccessfulDealViewController.h"
#import "AllMyOrderViewController.h"
#import "MyOrderViewController.h"
#import "MyOrderRefundViewController.h"
@implementation MineOrderSecondTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


//-(void)tkthButtonClick{
//    NSLog(@"退款/退货");
//    MyOrderRefundViewController *myoderVC=[[MyOrderRefundViewController alloc]init];
//    myoderVC.hidesBottomBarWhenPushed=YES;
//    [((userViewController *)self.secondViewController).navigationController pushViewController:myoderVC animated:YES];
//}
- (IBAction)orderClick:(UIButton *)sender {
    
    NSLog(@"我的订单");
    MyOrderViewController *myoderVC=[[MyOrderViewController alloc]init];
    myoderVC.hidesBottomBarWhenPushed=YES;
    myoderVC.index = 0;
    
    [((MineViewController *)self.secondViewController).navigationController pushViewController:myoderVC animated:YES];
}
- (IBAction)dfkClick:(UIButton *)sender {
    NSLog(@"待付款");
    MyOrderViewController *myoderVC=[[MyOrderViewController alloc]init];
    myoderVC.hidesBottomBarWhenPushed=YES;
    myoderVC.index = 1;
    [((MineViewController *)self.secondViewController).navigationController pushViewController:myoderVC animated:YES];
}
- (IBAction)dfhClick:(UIButton *)sender {
    NSLog(@"待发货");
    MyOrderViewController *myoderVC=[[MyOrderViewController alloc]init];
    myoderVC.hidesBottomBarWhenPushed=YES;
    myoderVC.index = 2;
    [((MineViewController *)self.secondViewController).navigationController pushViewController:myoderVC animated:YES];

}
- (IBAction)dshClick:(id)sender {
    NSLog(@"待收货");
    MyOrderViewController *myoderVC=[[MyOrderViewController alloc]init];
    myoderVC.hidesBottomBarWhenPushed=YES;
    myoderVC.index = 3;
    
    [((MineViewController *)self.secondViewController).navigationController pushViewController:myoderVC animated:YES];
}
- (IBAction)dpjClick:(UIButton *)sender {
    
    NSLog(@"待评价");
    //    SuccessfulDealViewController *myoderVC=[[SuccessfulDealViewController alloc]init];
    //    myoderVC.hidesBottomBarWhenPushed=YES;
    MyOrderViewController *myoderVC=[[MyOrderViewController alloc]init];
    myoderVC.hidesBottomBarWhenPushed=YES;
    myoderVC.index = 4;
    [((MineViewController *)self.secondViewController).navigationController pushViewController:myoderVC animated:YES];
}
- (IBAction)tkClick:(UIButton *)sender {
    
    [PublicFunction showAlert:nil message:@"售后功能暂时未开放" duration:5.0f];
    
    
//    MyOrderRefundViewController *myoderVC=[[MyOrderRefundViewController alloc]init];
//    
//    myoderVC.hidesBottomBarWhenPushed=YES;
//    
//    [((MineViewController *)self.secondViewController).navigationController pushViewController:myoderVC animated:YES];
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
